package com.ruoyi.warning.domain.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.base.Field;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 告警信息记录表
 * </p>
 *
 * @author chenhc
 * @since 2025-02-06
 */
@TableName("warning_message")
@Data
@ApiModel("告警信息记录表")
@SuppressWarnings("serial")
public class Message extends Field {
    private static final long serialVersionUID = 1L;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("区域id")
    private String areaId;

    @ApiModelProperty("区域名称")
    private String areaName;

    @ApiModelProperty("预警类型")
    private Integer warningType;

    @ApiModelProperty("预警等级0无1低2中3高")
    private Integer warningLevel;

    @ApiModelProperty("预警方式")
    private Integer warningWay;

    @ApiModelProperty("预警内容")
    private String warningContent;

    @ApiModelProperty("预警联系人")
    private String warningContact;

    @ApiModelProperty("通知状态，0未发送1已发送")
    private Integer warningStatus;

    @ApiModelProperty("事件id")
    private String eventId;

    @ApiModelProperty("事件id")
    private String eventDetailId;
}
